﻿using RecruitStudents.Utility;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;

namespace RecruitStudents.Client.WS
{
    /// <summary>
    /// ScoreService 的摘要说明
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务，请取消注释以下行。 
    // [System.Web.Script.Services.ScriptService]
    public class ScoreService : WS.Helper.BaseServiceHelper
    {
        [SoapHeader("MyHeader")]
        [WebMethod(Description = @"<b><i>获取上报学生成绩</i></b>")]
        public string GetScoreQueryUp(string strSFYSB, string strExamRoomID, string strTeacherID, string strExaminationID,
            string strExamPlaceID, string strSpecialityKindsNO, string strExamLevel)
        {
            return ServiceScore.GetScoreQueryUp(strSFYSB,strExamRoomID, strTeacherID, strExaminationID, strExamPlaceID, strSpecialityKindsNO, strExamLevel).ToJson();
        }
        [SoapHeader("MyHeader")]
        [WebMethod(Description = @"<b><i>获取学生成绩</i></b>")]
        public string GetScoreQuery(string strSFYSB, string strExamRoomID, string strTeacherID, string strExaminationID,
            string strExamPlaceID, string strSpecialityKindsNO, string strExamLevel)
        {
            return ServiceScore.GetScoreQuery(strSFYSB, strExamRoomID, strTeacherID, strExaminationID, strExamPlaceID, strSpecialityKindsNO, strExamLevel).ToJson();
        }

        [SoapHeader("MyHeader")]
        [WebMethod(Description = @"<b><i>获取老师打分成绩</i></b>")]
        public string GetTeacherScoreList(string strAllowExamID, string strExaminationID, string strSpecialityKindsNO, string strExamLevel)
        {
            return ServiceScore.GetTeacherScoreList(strAllowExamID, strExaminationID, strSpecialityKindsNO, strExamLevel).ToJson();
        }
        [SoapHeader("MyHeader")]
        [WebMethod(Description = @"<b><i>上报成绩</i></b>")]
        public string SaveUpData(string strAllowExamID, string strSpecialityKindsNO, string strExamLevel, string strExamPlaceID, string strIsPass)
        {
            return ServiceScore.SaveUpData(strAllowExamID, strSpecialityKindsNO, strExamLevel, strExamPlaceID, strIsPass).ToJson();
        }

        [SoapHeader("MyHeader")]
        [WebMethod(Description = @"<b><i>发布成绩</i></b>")]
        public string SavePublishData(string strAllowExamID, string strSpecialityKindsNO, string strExamLevel, string strExamPlaceID,
            string strIsPass, string strRemark, string strIsInOut)
        {
            return ServiceScore.SavePublishData(strAllowExamID, strSpecialityKindsNO, strExamLevel, strExamPlaceID, strIsPass, strRemark, strIsInOut).ToJson();
        }

        [SoapHeader("MyHeader")]
        [WebMethod(Description = @"<b><i>获取发布成绩列表</i></b>")]
        public string GetExamResultsPublishTable(string strExamPlaceNO, string strSpecialityKindsNO, string strExamLevel)
        {
            return ServiceScore.GetExamResultsPublishTable(strExamPlaceNO, strSpecialityKindsNO, strExamLevel).ToJson();
        }
    }
}
